-- GENERATED SPELL FOR [Dark Iron Saboteur] --


function spell0_1052(pUnit, Event) --@Gift of Ragnaros,Self--
pUnit:FullCastSpellOnTarget(7891,pUnit)
pUnit:RegisterEvent('Sorts_1052', 519, 1)
end

function spell1_1052(pUnit, Event) --@Sapper Explode,Self--
pUnit:FullCastSpellOnTarget(3204,pUnit)
pUnit:RegisterEvent('Sorts_1052', 3000, 1)
end

function Sorts_1052(pUnit, Event)
local choix_sorts_1052 = math.random(0, 1)
if choix_sorts_1052 == 0 then
pUnit:RegisterEvent('spell0_1052', 1, 1)
end
if choix_sorts_1052 == 1 then
pUnit:RegisterEvent('spell1_1052', 1, 1)
end
end

function mob1052_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1052', math.random(1500, 3000), 1)
end

function mob1052_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1052_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1052_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1052, 1, 'mob1052_Action')
RegisterUnitEvent(1052, 2, 'mob1052_Leave')
RegisterUnitEvent(1052, 3, 'mob1052_Kill')
RegisterUnitEvent(1052, 4, 'mob1052_Die')
